package com.dotndot.momserver.servlet;

import java.io.*;
import java.util.logging.*;

import javax.servlet.*;
import javax.servlet.http.*;

@SuppressWarnings( "serial" )
public class CronServlet extends HttpServlet
{

    private static final Logger log = Logger.getLogger(CronServlet.class.getName());

    public void doGet( HttpServletRequest req, HttpServletResponse resp ) throws IOException
    {

        String path = req.getRequestURI();
        if( path.equals("/cron/everyday.dnd") )
        {
            log.warning(">>>>> /cron/everyday.dnd Good !!!");
        }

        String url = "/templates/index.jsp";
        try
        {
            req.getRequestDispatcher(url).forward(req, resp);
        }
        catch( ServletException e )
        {
            e.printStackTrace();
        }
    }
}
